package models

import (
	"github.com/goravel/framework/database/orm"
)

type Order struct {
	orm.Model
	OrderNo       string `gorm:"column:order_no;type:varchar(255);not null;default:''" form:"order_no" json:"order_no"`
	UserID        uint   `gorm:"column:user_id;type:int(11);default:null;constraint:OnUpdate:CASCADE,OnDelete:SET NULL; comment:'由谁获得'" form:"user_id" json:"user_id"`
	RefillcardID  uint   `gorm:"column:refillcard_id;type:int(11);default:null;constraint:OnUpdate:CASCADE,OnDelete:SET NULL; comment:'充值卡id'" form:"refillcard_id" json:"refillcard_id"`
	RefillcardTxt string `gorm:"column:refillcard_txt;type:varchar(255);not null;default:''" form:"refillcard_txt" json:"refillcard_txt"`
}
